

Given differential equation is
(x2 - 1)dy/dx + 2xy = 2/(x2 - 1)
=> dy/dx + 2xy/(x2 - 1) = 2/(x2 - 1)2 .............1
This is the differential eqaution of the form
dy/dx + Py = Q
Now, IF = e∫2x/(x2 - 1) dx
=> IF = elog(x2 - 1)
=> IF = x2 - 1
Multiplying (x2 - 1) in equation 1, we get
(x2 - 1)dy/dx + 2xy = 2/(x2 - 1)
Now, integrate on both side we, get
y(x2 - 1) = ∫2/(x2 - 1) dx + C
=> y(x2 - 1) = (2/2)*log|(x - 1)/(x + 1)| + C
=> y(x2 - 1) = log|(x - 1)/(x + 1)| + C
This is the required solution.
